package com.stenio.fancat.mapper.user;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stenio.fancat.domain.user.UserRelationshipCandy;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 用户糖果币账目
 */
@Repository
public interface UserRelationshipCandyMapper extends BaseMapper<UserRelationshipCandy> {

    void updateReduceCandyById(@Param("userId") String userId,@Param("reduceCandy") Integer reduceCandy);

    void updateReduceCandyByIdAdd(@Param("userId") String userId,@Param("reduceCandy") Integer reduceCandy);

    Integer modifyCandy(@Param("candy") Integer candy,@Param("userId") String userId);

    Integer subtractCandy(@Param("candy") Integer candy,@Param("userId") String userId);
}
